from game import Game

def main(): 
    gm = Game()
    gm.menu()
    result = 0
    player = 'X' 
    gm.draw_field()
    while result == 0:
        result = gm.step(player)
        if player == "X" and result == 0: player = "O"
        elif player == "O" and result == 0: player = "X"
    if result == 1:
        print('We have a winner! {} win!'.format(player))
    elif result == 2:
        print('Draw')
    gm.restart_game()
    
if __name__ == "__main__":
    main()
